/* var data =  [
  {
    date:'2022-8-7',
    orderNum:40,
    returnNum: 3,
  },
  {
    date:'2022-8-7',
    orderNum:40,
    returnNum: 3,
  },
] */
export function mockData() {
  var data = []
  for(var i = 1;i<=31; i++){
    data.push({
      date:`2022-08-${i > 9 ? i : '0' + 1}`,
      //40-60
      orderNum:randomNum(40, 60),
      returnNum:randomNum(0, 5)
    }) 
  }
  return data
}
function randomNum(start,end) {
  return Math.floor(Math.random()*(end - start))+start
}
console.log(mockData())